const CoinLedger = require('../model/CoinLedger');

/** 创建账本流水 */
async function addLedger(t, { accountType, accountId, orderId, bizType, amount, balanceAfter }) {
    await CoinLedger.create(
        { accountType, accountId, orderId, bizType, amount, balanceAfter},
        { transaction: t }
    );
}

module.exports = {
    addLedger
}